$(function() {
  $(':button#btnrepair').bind('click', function() {
    $.getJSON('/_repairsel', {
      ssn: $('input[name="ssninputid"]').val(),
      date: new Date().getTime()+Math.random()
    }, function(data) {
      if(data.failcode == 'RELOGIN')
      {
        location.href = "/login";
      }
      else
      {
        $("#failcode").text(data.failcode);
        $("#faildesc").text(data.faildesc);
        var ract = data.rpract;
        var lang = data.lang;
        createList(ract, lang);
      }
    });
    return false;
  });
})

function txtKeyDown()
{
  btnrepair.click();
}